<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container{
            display: flex;
            flex-wrap: wrap;
            width: 1200px;
            margin: 0 auto;
        }
        .container::after{
            content: '';
            flex-grow: 99999; 
        }

        .image-item{
            height: 200px;
            margin: 5px;
            flex-grow: 1;
            background-color: brown;
        }

        .image-item img{
            height: 100%;
            min-width: 100%;
        }


    </style>
</head>
<body>
<div class="container">
    <div class="image-item">
        <img src="./images/test (1).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (2).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (3).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (4).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (5).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (6).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (7).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (8).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (9).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (10).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (11).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (12).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (13).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (14).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (15).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (16).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (17).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (18).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (19).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (20).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (21).jpg" alt="">
    </div>
    <div class="image-item">
        <img src="./images/test (22).jpg" alt="">
    </div>
</div>
</body>
</html>